#include <d3d11.h>
#pragma comment(lib,"d3d11")

int main()
{
    D3D_FEATURE_LEVEL FeatureLevelRequired = D3D_FEATURE_LEVEL_11_1;
    ID3D11Device* Device;
    /* ID3D11DeviceContext* DeviceContext; */

    HRESULT Result = D3D11CreateDevice(
        nullptr,
        D3D_DRIVER_TYPE_HARDWARE,
        nullptr,
        D3D11_CREATE_DEVICE_DEBUG,
        &FeatureLevelRequired,
        1,
        D3D11_SDK_VERSION,
        &Device,
        NULL,
        NULL /* &DeviceContext */
    );

	ID3D11Debug* DebugDevice = nullptr;
	Result = Device->QueryInterface(__uuidof(ID3D11Debug), reinterpret_cast<void**>(&DebugDevice));
	Result = DebugDevice->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL);
    DebugDevice->Release();

    Device->Release();
}
